package models

// 优惠电价明细
type CpmStationDiscountDetail struct {
	TenantId *uint64 `gorm:"column:tenant_id"` // 租户id
	DiscountId *uint64 `gorm:"column:discount_id"` // 优惠活动ID
	StartTime *time.Time `gorm:"column:start_time"` // 开始时段
	EndTime *time.Time `gorm:"column:end_time"` // 结束时段
	ElePriceDiscount *float64 `gorm:"column:ele_price_discount"` // 电费价格优惠
	SevPriceDiscount *float64 `gorm:"column:sev_price_discount"` // 服务费价格优惠
	CreatedTime *jsontime.JsonTime `gorm:"column:created_time"` 
	UpdatedTime *jsontime.JsonTime `gorm:"column:updated_time"` // 更新时间
}
func (entity *CpmStationDiscountDetail) TableName() string {
	return "cpm_station_discount_detail"
}